package com.lkm.market2_0.m_imple.steelyardserver;

import com.lkm.frame.module.ConditionConfige;
import com.lkm.frame.module.ModuleDelegate;
import com.lkm.frame.module.ModuleManager;
import com.lkm.market2_0.m.steelyarddata.SteelyardDataModule;
import com.lkm.market2_0.m.steelyardserver.SteelyardServerModule;
import com.lkm.market2_0.m.steelyardstatus.SteelyardStatusManagerModule;




public abstract class SteelyardServerModuleDelegateBase implements ModuleDelegate<SteelyardServerModule,Void>{

    protected ModuleManager mModuleManager;
    @Override
    public void init(ModuleManager moduleManager) {
        mModuleManager=moduleManager;
    }

    @Override
    public void dependency(DependencyConfig dc) {
        dc.addDependency(SteelyardStatusManagerModule.class);
        dc.addDependency(SteelyardDataModule.class);

    }

    @Override
    public void configure(ConditionConfige<Void> cc) {

    }



//        SteelyardStatusManagerModule steelyardStatusManagerModule=(SteelyardStatusManagerModule)mModuleManager.loadModule(SteelyardStatusManagerModule.class);



    @Override
    public Class<SteelyardServerModule> getModuleInterfaceClass() {
        return SteelyardServerModule.class;
    }

    @Override
    public void onError(ErrorWarp e) {

    }
}
